package com.yanqu.road.server.timer.statistics;

import com.yanqu.road.server.manger.statistics.StatisticsMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class StatisticsTask extends GeneralTask {

    private boolean isRun = false;

    @Override
    public void doRun() {
        if (!isRun) {
            isRun = true;

            try {
                StatisticsMgr.doAbilityStatistics();
            } catch (Exception e) {
                getLOGGER().error(Thread.currentThread().getStackTrace()[1].getMethodName() + ":", e);
            }

            isRun = false;
        }
    }
}
